function course_edit(){
	attr("func","course/edit")//跳转到3级页面
	return "";
}
function course_json(tbl){
	var courses=$list("course","agency_id="+tbl.agency_id)
	courses.forEach(function(c){
		c.put("img","<img src='"+web.www+c.img+"' width=60 height=60 />")
	})
	var res=new Record();
	res.put("total",courses.size())
	res.put("rows",courses)
	return res;
}